extends "../xili-2/xili-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("血量低于45%时，每秒恢复8%血量，获得100点机动、雷击、冷却加成", "所罗门狂犬")

func _onBattleStart():
	._onBattleStart()
	addBuff(b_xili.new())

class b_xili:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_xili"	
		buffName = "所罗门狂犬"
		dispel = 2
	func _upS():
		if masCha.att.hp/masCha.att.maxHp < 0.45:
			att.cd = 1
			att.mgiAtkL = 1
			att.dod = 1
			masCha.healCha(masCha, masCha.att.maxHp*0.08)
		else:
			att.cd = 0
			att.mgiAtkL = 0
			att.dod = 0